package com.base.service.impl;

import com.base.mapper.voipmapper.TbkChoiceGoodsMapper;
import com.base.po.tbk.TbkChoiceGoods;
import com.base.po.tbk.TbkChoiceGoodsExample;
import com.base.service.TbkChoiceGoodsService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("tbkChoiceGoodsService")
public class TbkChoiceGoodsServiceImpl implements TbkChoiceGoodsService {
	
	@Autowired
	private TbkChoiceGoodsMapper tbkChoiceGoodsMapper;

	@Override
	public int countByExample(TbkChoiceGoodsExample example) {
		return tbkChoiceGoodsMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(TbkChoiceGoodsExample example) {
		return tbkChoiceGoodsMapper.deleteByExample(example);
	}

	@Override
	public int insert(TbkChoiceGoods record) {
		return tbkChoiceGoodsMapper.insert(record);
	}

	@Override
	public int insertSelective(TbkChoiceGoods record) {
		return tbkChoiceGoodsMapper.insertSelective(record);
	}

	@Override
	public List<TbkChoiceGoods> selectAll(Page page, String parentid, Integer type) {
		return tbkChoiceGoodsMapper.selectAll(page, parentid, type);
	}

	@Override
	public List<TbkChoiceGoods> selectByExample(TbkChoiceGoodsExample example) {
		return tbkChoiceGoodsMapper.selectByExample(example);
	}

	@Override
	public TbkChoiceGoods selectByPrimaryKey(String id) {
		return tbkChoiceGoodsMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(TbkChoiceGoods record, TbkChoiceGoodsExample example) {
		return tbkChoiceGoodsMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(TbkChoiceGoods record, TbkChoiceGoodsExample example) {
		return tbkChoiceGoodsMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(TbkChoiceGoods record) {
		return tbkChoiceGoodsMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int countAll(String parentid, Integer type) {
		return tbkChoiceGoodsMapper.countAll(parentid, type);
	}
}
